package com.icoo.apigateway.user.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("账号密码登录参数")
public class LoginDto {

	@ApiModelProperty("账号")
	@Length(max = 10, min = 1,message = "用户名需要1-10个汉字，字母或符号！")
	@NotBlank(message = "用户名不能为空！")
	private String userName;

	@ApiModelProperty("密码")
	@Length(max = 16, min = 6, message = "密码需要6-16个汉字，字母或符号！")
	@NotBlank(message = "密码不能为空！")
	private String userPassword;
	@ApiModelProperty("租户")
	@NotBlank(message = "租户不能为空！")
	private String customerSchema;

}
